<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #app {
            height: 150px;
            background-color: #ccc;
        }
    </style>
</head>
<body>

<div id="app" @click="divClick">
    <input type="button" value="按钮" @click.stop="buttonClick">
</div>
<script src="lib/vue.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            msg: 'hello world'
        },
        methods: {
            divClick(){
                alert('div');
            },
            buttonClick(){
                alert('button');
            }
        }
    })
</script>
</body>
</html>